<?php

namespace App\Http\Controllers;


use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Http\Response;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs;


    function test(Request $request){


        $request->validate([
            'title' => 'required|unique:posts|max:255',
            'author.name' => 'required'
        ]);


dd(111);
    dd($request->all());


        return response(['data'=>'success','age'=>111],200);
//        return (new Response($content,$status))->header('Content-Type',$value);
    }

    public function test2(Request $request){



        return view('swoole');
    }
}
